﻿window.onload = function close() {
    var flag = document.getElementById('hidflag').value;
    if (flag == "1") {
        setTimeout("art.dialog.close();art.dialog.parent.document.getElementById('btnReload').click();", 100);
    }
}